package io.renren.sf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.sf.dao.CbPcsystemEditionDao;
import io.renren.sf.entity.CbPcsystemEditionEntity;
import io.renren.sf.service.CbPcsystemEditionService;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.Map;


@Service("cbPcsystemEditionService")
public class CbPcsystemEditionServiceImpl extends ServiceImpl<CbPcsystemEditionDao, CbPcsystemEditionEntity> implements CbPcsystemEditionService {
//    @Override
//    public Page<CbPcsystemEditionEntity> queryPage(Map<String, Object> params) {
//        String editionId = (String) params.get("editionId");
//        long page = Long.parseLong((String) params.get("page"));
//        long limit = Long.parseLong((String) params.get("limit"));
//        QueryWrapper<CbPcsystemEditionEntity> queryWrapper = new QueryWrapper<>();
//        if(!StringUtils.isEmpty(editionId)){
//            queryWrapper.eq("eid", editionId);
//        }
//        Page<CbPcsystemEditionEntity> pcsystemEditionPage = new Page<CbPcsystemEditionEntity>(page, limit);
//        baseMapper.selectPage(pcsystemEditionPage, queryWrapper);
//        return pcsystemEditionPage;
//    }
}